package com.sl.mes.app.controller;

import com.sl.mes.db.service.MesUserService;
import com.sl.mes.db.vo.MesUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/mes/test")
@Validated
public class MesTestController {
    @Autowired
    private MesUserService mesUserService;

    @GetMapping("/test")
    public MesUser test(Integer id){
        return mesUserService.findById(id);
    }

}
